<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="modal-dialog ms-modal-dialog" style="width: 550px;">
  <div class="modal-content">
     
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
      <h4 class="modal-title">修改操作资源</h4>
    </div>
    
      <form class="form-horizontal ms-form form-personal-info" method="POST" action="${ctx.host}/users/1/resources" >
       <input type="hidden" name="_method" value="PATCH"/>
       <div class="modal-body">
         <table class="table table-hover ms-table">
              <thead>
                <tr>
                    <th>选中</th>
                    <th>资源名称</th>
                    <th>类型</th>
                    <th>描述</th>
                </tr>
              </thead>
              <tbody>
                  <tr>
                    <td><input type="checkbox" /></td>
                    <td>基础数据</td>
                    <td>一级菜单</td>
                    <td>基础数据大菜单</td>
                 </tr>
                  <tr>
                    <td><input type="checkbox" /></td>
                    <td>业务信息查询</td>
                    <td>二级菜单</td>
                    <td>业务信息查询</td>
                 </tr>
                  <tr>
                    <td><input type="checkbox" /></td>
                    <td>查询大区代码</td>
                    <td>子菜单</td>
                    <td>查询大区代码</td>
                 </tr>
             </tbody>
          </table>
          
        </div>
      <div class="modal-footer ms-modal-footer">
        <button type="submit" class="btn ms-btn btn-primary">确定</button>
        <button type="button" class="btn ms-btn ms-btn-gary" data-dismiss="modal">取消</button>
      </div>

      </form>
    
  </div>
</div>

  <script type="text/javascript">
  $(document).ready(function(){
    
    $('select[name="role"]').select2({
        theme: "classic",
        placeholder : '请选择',
        minimumResultsForSearch : -1,
        allowClear : true,
      });
    
  })
  </script>